#就的包一直是旧的 old.apk , 只是一直换 new.apk 即可
./gradlew assembleRelease
apkpath=/Users/caldremch/work/sophix/SophixPatchTool_macos/apk
buildapkoutput=app/build/outputs/apk/release
#删除原有的 old 包
rm -rf $apkpath/new.apk
ls -la $apkpath
cp $buildapkoutput/app-release.apk $apkpath
ls -la $apkpath
mv $apkpath/app-release.apk $apkpath/new.apk

#每个 new.apk 都是基于上一个 old.apk 改造的
#./gradlew assembleRelease
#apkpath=/Users/caldremch/work/sophix/SophixPatchTool_macos/apk
#buildapkoutput=app/build/outputs/apk/release
##删除原有的 old 包
#rm -rf $apkpath/old.apk
###!usr/binxxxx 加这句时, cp 命令不生效
#mv $apkpath/new.apk $apkpath/old.apk
#ls -la $apkpath
#cp $buildapkoutput/app-release.apk $apkpath
#ls -la $apkpath
#mv $apkpath/app-release.apk $apkpath/new.apk

